import http from '../common/http.js'
//发布分类
export const categoryApi = (parm) => {
	return http.get('/api/goodskind/getSelectList', parm)
}
//发布
export const releaseApi = (parm) => {
	return http.post('/api/goods/add', parm)
}

//闲置分类
export const getCateListApi = ()=>{
return http.get('/api/goodskind/getCateList')

}
//闲置列表
export const getUsedListApi = (parm)=>{
return http.get('/api/goods/getUsedList',parm)
}
//求购列表
export const getBuyListApi = (parm)=>{
return http.get('/api/goods/getBuyList',parm)
}
//我的求购列表
export const getMyUnusedListApi = (parm)=>{
return http.get('/api/goods/getMyUnusedList',parm)
}
//编辑
export const editApi = (parm)=>{
return http.post('/api/goods/edit',parm)
}

//下架
export const upanddownpi = (parm)=>{
return http.post('/api/goods/upanddown',parm)
}
//删除id
export const deleteApi = (parm)=>{
return http.post('/api/goods/delete',parm)
}
